using System;

class demo
{
    static void Main()
    {
        Console.WriteLine("1000以内的水仙花数有：");
        
        for (int i = 100; i < 1000; i++)
        {
            int hundreds = i / 100;
            int tens = (i / 10) % 10;
            int units = i % 10;
            int sum = hundreds * hundreds * hundreds + 
                      tens * tens * tens + 
                      units * units * units;
            if (sum == i)
            {
                Console.WriteLine(i);
            }
        }
    }
}